#include "find.h"
#include "ui_find.h"
#include "interface_control.h"
#include "client_connet.h"

Find::Find(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Find)
{
    ui->setupUi(this);
}

Find::~Find()
{
    delete ui;
}


void Find::on_find_name_clicked()
{
    QJsonObject js;
    js.insert("cmd",5);
    js.insert("nickname",ui->find_edit->text());


    //发送消息
    Client_connet::Get_Connet()->set_obj(js);
    Client_connet::Get_Connet()->SendServer();


    Interface_Control::getControlptr()->showm_fr();
    Interface_Control::getControlptr()->getm_fr()->flushedFind();
    this->hide();
}

